<%@ Page Language="C#" MasterPageFile="~/SalesOneWeb.Master"  AutoEventWireup="true" CodeBehind="ViewRole.aspx.cs" Inherits="IronOne.SalesOne.SalesOneWeb.UserManagement.ViewRole" %>
<%@ Register src="../UserControls/UCGrid.ascx" tagname="UCGrid" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <table class="style1">
        <tr>
            <td class="style2" valign="top">
                Select User Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:DropDownList ID="ddlUserType" runat="server" 
                 AutoPostBack="True" 
                    onselectedindexchanged="ddlUserType_SelectedIndexChanged1" >
            </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style2">
            <asp:GridView ID="grdRoles" runat="server" BackColor="LightGoldenrodYellow" BorderColor="Tan"
                BorderWidth="1px" CellPadding="2" ForeColor="Black" GridLines="None" 
                Width="376px" OnRowDataBound="grdRoles_RowDataBound" 
                        onrowcreated="grdRoles_RowCreated" on>
                <Columns>
                   <%-- <asp:TemplateField HeaderText="Select">
                        <ItemTemplate>
                            <asp:RadioButton ID="RadioButton1" runat="server" 
                                 />
                        </ItemTemplate>
                    </asp:TemplateField>--%>
                     <asp:TemplateField HeaderText="Select">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkSelect" runat="server" 
                                 />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Is Enabled">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkEnabled" runat="server" AutoPostBack="True" oncheckedchanged="chkEnabled_CheckedChanged"/>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="RoleName">
                        <ItemTemplate>
                            <asp:Label id="lblRoleName" runat="server"/>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="Tan" />
                <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                <HeaderStyle BackColor="Tan" Font-Bold="True" />
                <AlternatingRowStyle BackColor="PaleGoldenrod" />
            </asp:GridView>
            </td>
        </tr>
        <tr>
            <td class="style3">
                <asp:Button ID="btnCreate" runat="server" onclick="btnCreate_Click" 
                    Text="Create" Visible="False" />
            &nbsp;
                <asp:Button ID="btnUpdate" runat="server" onclick="btnUpdate_Click" 
                    Text="Update" Visible="False" />
            &nbsp;
                <asp:Button ID="btnAssignPermissions" runat="server" Text="Manage Permissions" 
                    Visible="False" onclick="btnAssignPermissions_Click" />
                <br />
            </td>
        </tr>
    </table>
   </asp:Content>